<?php
include ("include.php");
$sanpham = new class_sanpham();
$langid = $HTTP_GET_VARS["langid"];
$catid = $HTTP_GET_VARS["catid"];
$subcatid = $HTTP_GET_VARS["subcatid"];
$proid = $HTTP_GET_VARS["proid"];
if($subcatid > 0){
	$id = $subcatid;
}else{
	$id = $catid;
}

if ($langid == ""){
	$langid = 0;
}

/*
$name_pro = get_name_product($proid);
if($name_pro != ""){
	$title = $name_pro;
}
*/

//Layout
$layout_file = $arr_layout["shopping"];
include("html_layout.php");


//=============
$upload_path1 = AddSlashes("../uploads/sanpham/");
$arr = array(
			"layout" => $arr_sanpham_chitiet[$langid],
			"path_upload" => "$upload_path1"
			);
$arr_column = array(
			"img1",
			"ten",
			"ten_vn",
			"maso",
			"gia",
			"diachi",
			"link_addcart",
			"chitiet",
			"chitiet_vn",
			"taptin",
			"taptinvn"			
			);

$str_content = $sanpham->chitiet($arr, $arr_column, $proid);

$str_htm = ereg_replace("@noidung@", "$str_content", $str_htm);

//Header Loading - CSS, Meta, Javascript ...
include("html_header.php");

//Body Loading - Date-Time, ...
include("html_body.php");	

$menu_left_id = $arr_tintuc_id[$langid]["shopping"];
//Menu include
include("html_menu.php");

//Modules include
include("modules.php");

print $str_htm;
?>